<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
   <!-- <form name="frm" >
      账号<input type="text"><br/>
      密码<input type="password"><br/>
   <input type="submit" value="登录" onclick="submitFrm('login')">
   <input type="submit" value="校验" onclick="submitFrm('check')">
   </form>
   <script type="text/javascript">
      function submitFrm(method){
    	  frm.action="user!"+method;
    	  frm.submit();
      }
   </script> -->
   <!--使用struts自带的标签,每个标签结束后都必须加上/,否则有可能会报错-->
   <s:form action="user">
      账号<input type="text"/><br/>
      密码<input type="password"/><br/>
    <s:submit value="登录" method="login"/>
    <s:submit value="校验" method="check"/>
   </s:form>
</body>
</html>